package com.sse.product.model.rbac;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

@Data
public class GrantedAuthorityBo implements GrantedAuthority {
    private static final long serialVersionUID = -8655467342121323222L;
    private String authority;//权限名称
    private String authorityName;//权限中文名
    private String passId;
    private String certSn;
    private String mobile;


    public GrantedAuthorityBo(PassportUserInfoBo userInfo) {
        this.passId = userInfo.getPass_id();
        this.certSn=userInfo.getCertSn();
        this.mobile=userInfo.getMobile();
    }

    public GrantedAuthorityBo(PassportUserInfoBo userInfo, String authority) {
        this.passId = userInfo.getPass_id();
        this.certSn=userInfo.getCertSn();
        this.mobile=userInfo.getMobile();
        this.authority=authority;
    }

    public GrantedAuthorityBo(PassportUserInfoBo userInfo, String authority,String authorityName ) {
        this.passId = userInfo.getPass_id();
        this.certSn=userInfo.getCertSn();
        this.mobile=userInfo.getMobile();
        this.authority=authority;
        this.authorityName = authorityName;
    }


}
